#ifndef H_CONDITIONSDIALOG
#define H_CONDITIONSDIALOG
#include "precompiled.h"
#include "ui_conditionsdialog.h"
#include "engine/engineheader.h"
namespace weo
{
    namespace ui
    {
        class ConditionsDialog : public QDialog, protected Ui_ConditionsDialog
        {
            Q_OBJECT
        private:
            std::vector<std::pair<unsigned int, float>> m_Conditions;
            private slots:
                void on_AddButton_clicked();
                void on_DeleteButton_clicked();
                void on_EditButton_clicked();
                void on_AttributeComboBox_currentIndexChanged(int value);
        public:
            ConditionsDialog(QWidget* parent = 0, Qt::WFlags flags = 0);
            void setConditions(const std::vector<std::pair<unsigned int, float>>& value);
            const std::vector<std::pair<unsigned int, float>> Conditions() {return m_Conditions;};
        };
    };
};
#endif